package com.example.coursaccino;

import android.database.sqlite.SQLiteDatabase;

public class Model {
	
	UserDAO userDAO = null;
	
	public Model () {
		userDAO = new UserDAO();
	}
	
	public UserDAO getUserDAO () {
		return this.userDAO;
	}
	
	public void createTables(SQLiteDatabase db) {
		System.out.println("In model tables created");
		db.execSQL(userDAO.getCreateTablesSQLQuery());
	}
	
	public void deleteTables(SQLiteDatabase db) {
		db.execSQL(userDAO.getDeleteTablesSQLQuery());
	}
}
